@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>人卡关系管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-3">
                                <#NameCon id="name" name="姓名" />
                            </div>
                            <div class="col-sm-3">
                                <#button name="搜索" icon="fa-search" clickFun="UserCard.search()"/>
                                <#button name="重置" icon="fa-refresh" clickFun="UserCard.reset()"/>
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <#NameCon id="accountNo" name="用戶数量" placeholder="请数量生成用户数量"/>
                        </div>
                        <div class="col-sm-3">
                            <#button name="批量生成用戶" icon="fa-user" clickFun="UserCard.batchAdd()" space="true"/>
                        </div>
                    </div>
                        <div class="hidden-xs" id="UserCardTableToolbar" role="group">
                            @if(shiro.hasPermission("/door/USER/CARD/add")){
                            <#button name="批量发卡" icon="fa-plus" clickFun="UserCard.openAddUserCard()"/>
                            @}
                            @if(shiro.hasPermission("/door/USER/CARD/delete")){
                            <#button name="解绑" icon="fa-remove"  btnCss="danger" clickFun="UserCard.unfreeze()" space="true"/>
                            @}
<!--                            <#button name="批量生成用戶" icon="fa-user" clickFun="UserCard.batchAdd()" space="true"/>-->
                        </div>
                        <#table id="UserCardTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/door/USER/CARD/userCard.js"></script>
@}
